<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var age=prompt("请输入你的年龄");
                if(0<=age,age<14)
                {
                     document.write("您是孩童")
                 }
                 else if(14<=age,age<24)
                 {
                     document.write("您是青少年")
                 }
                 else if(24<=age,age<40)
                 {
                     document.write("您是青年")
                 }
                 else if(40<=age,age<60)
                 {
                     document.write("您是中年人")
                 }
                 else if(60<=age,age<160)
                 {
                     document.write("您是老年人")
                 }
                 else if(160<=age,age<999999)
                 {
                     document.write("您已成仙")
                 }
                 else{
                    document.write("您输入错误")
                 }
    </script>
</body>
</html>